package com.chwn.curiousdiary.gloable;

import java.io.Serializable;

/**
 * Created by Myshikin on 2017/3/28.
 * desc: 用户信息类  设为全局
 */
public class User implements Serializable {
    /**
     * headUrl	string
     * ---宝宝性别	babysex	number	0 女baby 1 男baby
     * ---用户昵称	nickName	string
     * ---用户ID	userId	string
     * ---用户标识	userToken	string
     * ---登录方式	loginWay	number	0 手机号登陆 1 微信登录
     * ---用户手机号	phone	string
     * ---是否绑定手机	isBind	number	0 未绑定 1已绑定
     * ---宝宝生日	babybirth	string	时间戳
     */

    private String loginWay;
    private String phone;
    private String userToken;
    private String nickName;
    private String userId;
    private String babysex;
    private String user_id;
    private String headUrl;
    private String isBind;
    private String babybirth;
    private String openid ;
    private int iconNum ;
    private int keepDay ;
    private String userLevel;
    private String coinCount;

    public String getCoinCount() {
        return coinCount;
    }

    public void setCoinCount(String coinCount) {
        this.coinCount = coinCount;
    }

    public String getUserLevel() {
        return userLevel;
    }

    public void setUserLevel(String userLevel) {
        this.userLevel = userLevel;
    }

    public int getIconNum() {
        return iconNum;
    }

    public void setIconNum(int iconNum) {
        this.iconNum = iconNum;
    }

    public int getKeepDay() {
        return keepDay;
    }

    public void setKeepDay(int keepDay) {
        this.keepDay = keepDay;
    }

    public String getPassword() {
        return password;
    }

    private String password;

    public String getUnionid() {
        return unionid;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }

    String unionid ;

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getBabybirth() {
        return babybirth;
    }

    public void setBabybirth(String babybirth) {
        this.babybirth = babybirth;
    }

    public String getLoginWay() {
        return loginWay;
    }

    public void setLoginWay(String loginWay) {
        this.loginWay = loginWay;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getUserToken() {
        return userToken;
    }

    public void setUserToken(String userToken) {
        this.userToken = userToken;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getBabysex() {
        return babysex;
    }

    public void setBabysex(String babysex) {
        this.babysex = babysex;
    }

    public String getUser_id() {
        return user_id;
    }

    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }

    public String getHeadUrl() {
        return headUrl;
    }

    public void setHeadUrl(String headUrl) {
        this.headUrl = headUrl;
    }

    public String getIsBind() {
        return isBind;
    }

    public void setIsBind(String isBind) {
        this.isBind = isBind;
    }

    @Override
    public String toString() {
        return "User{" +
                "loginWay='" + loginWay + '\'' +
                ", phone='" + phone + '\'' +
                ", userToken='" + userToken + '\'' +
                ", nickName='" + nickName + '\'' +
                ", userId='" + userId + '\'' +
                ", babysex='" + babysex + '\'' +
                ", user_id='" + user_id + '\'' +
                ", headUrl='" + headUrl + '\'' +
                ", isBind='" + isBind + '\'' +
                '}';
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
